package com.akaovi.cls;

import com.akaovi.pojo.SalesEmployee;

/**
 * @author akaovi
 * @version 1.0
 * @description
 * @date 2022/11/7 14:25
 * @since 2022/11/7 14:25
 */
public class Cls {
    public static void main(String[] args) {
        SalesEmployee salesEmployee = new SalesEmployee();
        Class cls = salesEmployee.getClass();

        // 所属类的名称
        System.out.println(cls.getName());

        // 父类名称
        Class superCls = cls.getSuperclass();
        System.out.println(superCls.getName());
    }

}
